import store from '@/store'
import { addPageViewNum } from '../api/addPageViewNum.js'
export function addPageVisitNum(pageUrl, page_name) {
  var params = {
    token: store.getters.token,
    merchant_id: store.getters.merchantId,
    user_id: store.getters.adminId,
    pages: pageUrl,
    page_name: page_name,
    // url_web: 'https://qianxun.zanboon.com/',
    url_web: 'tuanhaoke.cn/',
    sign: 'merchant_admin_pc'
  }
  addPageViewNum(params).then(res => {
    // console.log('addPageViewNum', res)
  }).catch(err => {
    console.log('addPageViewNum', err)
  })
}
